//删文章
const path = require('path');
const shuJuKu = require(path.resolve('moKuai/shuJuKu.js'));

module.exports = async function shanWenZhang(qingQiu, xiangYing, jieZhe) {
	if (qingQiu.path == '/shanWenZhang') {
		let a = [];
		for ( wHao of qingQiu.body) {
			let r = await shuJuKu.shanChu(wHao, 'wenZhang');
			a.push(r);
		}
		if (a != 0 && a.every( x => x == 1)) xiangYing.send('删除成功');
		else xiangYing.send('删除失败');
	}else jieZhe();
}